﻿//双击事件
function CustomDbClick() {
    parent.closeWin(); //去掉双击功能
}

//修改信息
var fnCustomEdit = function () {
    var recordID = myDataTable.getSelectedRows()[0];
    record = myDataTable.getRecord(recordID);
    if (record == null) {
        alert("请选择一条记录");
        return;
    }
    var UserName = record.getData("UName");

    document.getElementById("dialog1_h").innerHTML = "修改 " + UserName + " 的手机设备信息";
    document.getElementById("EditUIWindow").src = "AutoLoadForm.aspx?r=" + Math.random() + "&entity=DatUser_Mobile&id=" + record.getData(const_entityID);
    SetDWH(450, 300, YAHOO.example.container.dialog1);
    YAHOO.example.container.dialog1.show();
}


//删除信息
var fnCustomDelete = function () {
    var recordID = myDataTable.getSelectedRows()[0];
    record = myDataTable.getRecord(recordID);
    if (record == null) {
        alert("请选择一条记录");
        return;
    }
    var UserName = record.getData("UserName");

    document.getElementById("dialog1_h").innerHTML = "修改 " + UserName + " 的手机设备信息";
    document.getElementById("EditUIWindow").src = "AutoLoadForm.aspx?r=" + Math.random() + "&entity=DatUser_Mobile&id=" + record.getData(const_entityID);
    SetDWH(450, 300, YAHOO.example.container.dialog1);
    YAHOO.example.container.dialog1.show();
}
